package com.ruiyeclub.feign;

import com.ruiyeclub.entity.Menu;
import com.ruiyeclub.entity.MenuVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author Ray。
 * @create 2020-03-06 17:06
 */
@FeignClient(value = "menu") //这里相当于关联了menu里面的handler 注意不加/

public interface MenuFeign {

    @GetMapping("/menu/findAll/{index}/{limit}")
    public MenuVO findAll(@PathVariable("index") int index, @PathVariable("limit") int limit);
}